package com.kehutong.basic.annex.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;
import com.kehutong.basic.annex.enums.BusinessType;

@Table(value="t_basic_annex", comment="附件", multi=true, idType = IDType.TIMESTAMP)
public class BasicAnnex extends Entity {

    private static final long serialVersionUID = -8594151322302778063L;

    protected BasicAnnex(String id) {
        super(id);
    }

    @Column(comment="附件名称", length = 256)
    private String name;

    @Column(comment = "业务类型")
    private BusinessType businessType;

    @Column(comment="业务ID")
    private String businessId;

    @Column(comment="附件格式")
    private String contentType;

    @Column(comment="文件大小")
    private Long size;

    @Column(comment="上传时间")
    private String uploadTime;

    @Column(comment = "上传人员ID")
    private String uploadNo;

    @Column(comment = "上传人员名称")
    private String uploadName;

    @Column(comment = "备注", length = 255)
    private String remarks;

    @Column(comment = "逻辑删除")
    private boolean deleted;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BusinessType getBusinessType() {
        return businessType;
    }

    public void setBusinessType(BusinessType businessType) {
        this.businessType = businessType;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public String getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(String uploadTime) {
        this.uploadTime = uploadTime;
    }

    public String getUploadNo() {
        return uploadNo;
    }

    public void setUploadNo(String uploadNo) {
        this.uploadNo = uploadNo;
    }

    public String getUploadName() {
        return uploadName;
    }

    public void setUploadName(String uploadName) {
        this.uploadName = uploadName;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }
}
